package com.iss.airsys.service;

import com.iss.airsys.dao.EmployeeDao;
import com.iss.airsys.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeService {
    @Autowired
    EmployeeDao dao;

    public List<Employee>  selctAll(){
        return  dao.selctAll();
    }

    public Integer updateInfo(@Param("em_picture") String em_picture, @Param("em_id") Integer em_id){
        return dao.updateInfo(em_picture,em_id);
    }
    public String selectpicture(Integer em_id){
        return dao.selectpicture(em_id);
    }
}
